<?php
// Set your return content type
if(isset($_GET["link"]))
{
	$daurl = $_GET['link'];
}
else $daurl="www.google.com";
// Website url to open
// Get that website's content
//$handle = fopen($daurl, "r");
//If there is something, read and return
/*if ($handle) {
    while (!feof($handle)) {
        $buffer = fgets($handle, 4096);
        echo $buffer;
    }
    fclose($handle);
}
$homepage = file_get_contents($daurl);
echo $homepage;*/
$url = $daurl;
$agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec ($ch);
echo $result;
?>